import Layout from '@/layout'

/**
 * 路由表配置
 * @type {import('vue-router').RouteConfig[]}
 */
const routers = () => [
  {
    path: '/permission',
    name: 'permission',
    meta: {
      title: 'permission',
      icon: 'el-icon-lock'
    },
    component: Layout,
    children: [{
      path: 'role',
      name: 'role',
      component: () => import( /* webpackChunkName: "role" */ '@/views/permission/role'),
      meta: {
        title: 'role',
      }
    },
    {
      path: 'user',
      name: 'user',
      component: () => import( /* webpackChunkName: "user" */ '@/views/permission/user'),
      meta: {
        title: 'user',
      }
    },
    ]
  },

]
export default routers
